
<script>

// When a new tab is created, make sure that it is selected
function tabCreated(tab) {
	
	console.log("tab created " + tab.id);
	chrome.tabs.update(tab.id, {"selected":true} );
}

// Tabs onCreate listener, passing in the tabCreated function
chrome.tabs.onCreated.addListener(tabCreated);

</script>